package com.erlin.store.controller;


import com.erlin.store.controller.param.StoreMemberAddParam;
import com.erlin.store.service.IStoreMemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author alin
 * @since 2021-06-01
 */
@RestController
@RequestMapping("/store/member")
@Api(tags = "商户成员管理")
public class StoreMemberController {
    @Autowired
    private IStoreMemberService storeMemberService;

    @PostMapping("/addMember")
    @ApiOperation("添加成员")
    public Boolean addMember(@Validated @RequestBody StoreMemberAddParam param) {
        return storeMemberService.addMember(param);
    }
}
